observations
Class Unit

java.lang.Object
  extended byobservations.DomainObject
      extended byobservations.Unit
All Implemented Interfaces:
DomainInterface

public class Unit
extends DomainObject

Unit Simple unit like 'Euros' or 'Dollars'.

Version:
2004-09-10
Author:
Sascha Hemminger

Constructor Summary
Unit(java.lang.String name)
          Simply constructs a new unit object with name.
 
Method Summary
static Unit get(java.lang.String name)
          Searches an unit in registry.
 Unit persist()
          Saves a new unit.
 
Methods inherited from class observations.DomainObject
getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unit

public Unit(java.lang.String name)
Simply constructs a new unit object with name.

Parameters:
name - name of the unit (eg. 'feet')
See Also:
DomainObject.DomainObject(String)
Method Detail

get

public static Unit get(java.lang.String name)
Searches an unit in registry.

Parameters:
name - name of the searched unit
Returns:
the unit

persist

public Unit persist()
Saves a new unit.

Returns:
the unit